package com.lx.design.demo.learning.liu.visitor;

/**
 * @author lx
 * @date 2021/3/1 17:38
 */
public class Client {

    public static void main(String[] args) {
        EmployeeList list = new EmployeeList();
        Employee fte1,fte2,fte3,pte1,pte2;

        fte1 = new FullTimeEmployee("小龙女",3200,45);
        fte2 = new FullTimeEmployee("张三",2000,40);
        fte3 = new FullTimeEmployee("李四",2400,38);
        pte1 = new ParttimeEmployee("王二",80,20);
        pte2 = new ParttimeEmployee("麻子",60,18);

        list.addEmployee(fte1);
        list.addEmployee(fte2);
        list.addEmployee(fte3);
        list.addEmployee(pte1);
        list.addEmployee(pte2);

        Department department = new HRDepartment();

        list.accept(department);

    }
}
